import request from '@/utils/request'
export const login = (data) => request.post('/sys/login', data)

export const getUserProfile = () => request.post('/sys/profile')

export const getUserDetail = (id) => request.get(`/sys/user/${id}`)
export const updateUserDetail = (data) => request.put(`/sys/user/${data.id}`, data)
